﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Crossroad.Core.Models
{
    /// <summary>
    /// 分页类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [Serializable]
    public class Pagination<T>
    {
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageIndex { set; get; }

        /// <summary>
        /// 页大小
        /// </summary>
        public int PageSize { set; get; }

        /// <summary>
        /// 记录数
        /// </summary>
        public int TotalCount { set; get; }

        /// <summary>
        /// 记录数据
        /// </summary>
        public List<T> Records { set; get; }
    }
}